package com.atguigu.multiReading;

import java.util.concurrent.*;

public class ThreadPool {
    public static void main(String[] args) {
        BlockingQueue<Runnable> queue=new LinkedBlockingQueue<>(100);
        RejectedExecutionHandler handler=new ThreadPoolExecutor.DiscardPolicy();
        ThreadPoolExecutor pool=new ThreadPoolExecutor(5,10,10000, TimeUnit.SECONDS,
                queue, handler);
    }
}
